package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 违纪管理，记录学生违纪情况及处理状态对象 yxx_discipline_records
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
public class YxxDisciplineRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 违纪记录ID */
    private Long id;

    /** 违纪学生ID */
    @Excel(name = "违纪学生ID")
    private Long studentId;

    /** 宿舍ID */
    @Excel(name = "宿舍ID")
    private Long dormId;

    /** 违纪类型（如晚归、喧哗、违规电器等） */
    @Excel(name = "违纪类型", readConverterExp = "如=晚归、喧哗、违规电器等")
    private String type;

    /** 违纪描述 */
    @Excel(name = "违纪描述")
    private String description;

    /** 记录人ID（宿管或管理员） */
    @Excel(name = "记录人ID", readConverterExp = "宿=管或管理员")
    private Long reportedBy;

    /** 处理状态（待处理/已处理） */
    @Excel(name = "处理状态", readConverterExp = "待=处理/已处理")
    private String status;

    /** 处罚措施（如警告、罚款等） */
    @Excel(name = "处罚措施", readConverterExp = "如=警告、罚款等")
    private String punishment;

    /** 违纪记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "违纪记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setDormId(Long dormId) 
    {
        this.dormId = dormId;
    }

    public Long getDormId() 
    {
        return dormId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setReportedBy(Long reportedBy) 
    {
        this.reportedBy = reportedBy;
    }

    public Long getReportedBy() 
    {
        return reportedBy;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPunishment(String punishment) 
    {
        this.punishment = punishment;
    }

    public String getPunishment() 
    {
        return punishment;
    }
    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("dormId", getDormId())
            .append("type", getType())
            .append("description", getDescription())
            .append("reportedBy", getReportedBy())
            .append("status", getStatus())
            .append("punishment", getPunishment())
            .append("recordDate", getRecordDate())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
